<?php

/* Defino constantes para os diretorios de controller, model e views */
define('CONTROLLERS', 'app/controllers/');
define('MODELS', 'app/models/');
define('VIEWS', 'app/views/');
define('LIBRARY', 'libraries/');
require_once('system/config.php');
require_once('system/system.php');
require_once('system/controller.php');
require_once('system/model.php');

/**/

function __autoload($file) {
    require_once( MODELS . $file . '.php');
}

/* Instancio a class System */
$start = new System();
/* executo o metodo run() da class System */
$start->run();
?>